package com.cy.bfzcommons.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cy.bfzcommons.pojo.config.BaseObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("administrator")
public class Administrator extends BaseObject {
    private static final long serialVersionUID = -1164888618334588615L;
    @TableId(type = IdType.AUTO)
    private Integer administratorId;
    private String salt;
    private String username;
    private String password;
    private String phone;
    private String email;
    private Boolean status;

    @TableField(exist = false)
    private List<Integer> roleList;
    @TableField(exist =  false)
    private List<String> roleName;
}
